clear all

cd "C:\.Alex\Alex\Papers - Investigação\Private Debt and Credit (Steve Keen and others)\Global Debt Database IMF (GDD)"
use ".\Global Debt Database.dta"

sum pvd_all pvd_ls gg ps nfps cg hh_all hh_ls nfc_all nfc_ls ngdp

xtline pvd_ls if country == "Portugal" || country == "Spain" || country == "Germany" /// 
|| country == "United Kingdom" || country == "United States" , ///
overlay i(country) t(year) addplot((bar gg year if country == "Portugal", sort) /// 
(bar gg year if country == "Spain", sort) ///
(bar gg year if country == "Germany", sort) ///
(bar gg year if country == "United Kingdom", sort) (bar gg year if country == "United States", sort))

// Manually edited in Stata Graph Editor and then saved:
graph save Graph "..\private loans and debt sec PLUS public total  over GDP.gph" 

